import modules from '../modules'
import httpRequest from '../../utils/request'

const defaultRoute = 'BasicData_Userinfo'

export interface UserinfoParam {
  userName: string;
}



// 登录
export function apiGetBasicData_UserinfoLogin(param: UserinfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/Userinfo/Get${defaultRoute}Login`,
    method: "Post",
    data: param,
  });
}




// 获取用户列表
export function ApiGetBasicData_UserinfoPageListAsync(param: UserinfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/Userinfo/Get${defaultRoute}PageList`,
    method: "Post",
    data: param,
  });
}

// 批量删除用户
export function ApiBatchDeletionBasicData_UserinfoAsync(param: UserinfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/Userinfo/BatchDeletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加用户
export function ApiCreateBasicData_UserinfoAsync(param: UserinfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/Userinfo/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}



// 更新用户
export function ApiUpdateBasicData_UserinfoAsync(param: UserinfoParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/Userinfo/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}
